//
//  BaseVC_ht.m
//  WZLProduct
//
//  Created by dllo on 16/3/23.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import "BaseVC_ht.h"

@interface BaseVC_ht ()

@end

@implementation BaseVC_ht

- (void)viewDidLoad {
    [super viewDidLoad];
    if ([self respondsToSelector:@selector(edgesForExtendedLayout)]){
        self.edgesForExtendedLayout = UIRectEdgeNone;
    }
//    [self Ht_setHUD];
  
}

- (void)Ht_setHUD{
    self.HUD = [[MBProgressHUD alloc] initWithView:self.view]; //创建HUD
    [self.view addSubview:self.HUD];            //添加到self.View上
    [self.HUD show:YES];           //让它显示出来 （小菊花）
}
/** push跳转, 动画效果 */
- (void)transitionPush{
    
    CATransition *tran = [CATransition animation];
    tran.duration =1.0;
    tran.type = @"rippleEffect";
    tran.subtype =kCATransitionFromLeft;
    
    [self.navigationController.view.layer addAnimation:tran forKey:nil];
    
}

/** MM菊花跑起来 */
- (void)MMHUDRunning{
    NSArray *images = @[[UIImage imageNamed:@"BAT_Running_HT1.png"],
                        [UIImage imageNamed:@"BAT_Running_HT2.png"],
                        [UIImage imageNamed:@"BAT_Running_HT3.png"],
                        [UIImage imageNamed:@"BAT_Running_HT4.png"],
                        [UIImage imageNamed:@"BAT_Running_HT5.png"],
                        [UIImage imageNamed:@"BAT_Running_HT6.png"]];
    [MMProgressHUD showWithTitle:@"BAT" status:@"Running..." images:images];
}

/** MM菊花停止 */
- (void)MMHUDRunningStop{
     [MMProgressHUD dismissWithSuccess:@"Success!"];
}
/** MM菊花Balloon(从下而上) */
- (void)MMHUDBalloon{
        [MMProgressHUD setPresentationStyle:MMProgressHUDPresentationStyleBalloon];
        [MMProgressHUD showWithTitle:@"BAT" status:@"loading..."];
}

@end
